Optimal. Leaf size=313 \[ -\frac {5 b e^3 k n \sqrt {x}}{4 f^3}+\frac {3 b e^2 k n x}{8 f^2}-\frac {7 b e k n x^{3/2}}{36 f}+\frac {1}{8} b k n x^2+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right )}{4 f^4}-\frac {1}{4} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 k n \text {Li}_2\left (1+\frac {f \sqrt {x}}{e}\right )}{f^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 313, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {2504, 2442, 45,
2423, 2441, 2352} \begin {gather*} \frac {b e^4 k n \text {PolyLog}\left (2,\frac {f \sqrt {x}}{e}+1\right )}{f^4}+\frac {1}{2} x^2 \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f \sqrt {x}\right )^k\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {1}{4} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right )}{4 f^4}+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}-\frac {5 b e^3 k n \sqrt {x}}{4 f^3}+\frac {3 b e^2 k n x}{8 f^2}-\frac {7 b e k n x^{3/2}}{36 f}+\frac {1}{8} b k n x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2352
Rule 2423
Rule 2441
Rule 2442
Rule 2504
Rubi steps
\begin {align*} \int x \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (-\frac {e^2 k}{4 f^2}+\frac {e^3 k}{2 f^3 \sqrt {x}}+\frac {e k \sqrt {x}}{6 f}-\frac {k x}{8}-\frac {e^4 k \log \left (e+f \sqrt {x}\right )}{2 f^4 x}+\frac {1}{2} x \log \left (d \left (e+f \sqrt {x}\right )^k\right )\right ) \, dx\\ &=-\frac {b e^3 k n \sqrt {x}}{f^3}+\frac {b e^2 k n x}{4 f^2}-\frac {b e k n x^{3/2}}{9 f}+\frac {1}{16} b k n x^2+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{2} (b n) \int x \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \, dx+\frac {\left (b e^4 k n\right ) \int \frac {\log \left (e+f \sqrt {x}\right )}{x} \, dx}{2 f^4}\\ &=-\frac {b e^3 k n \sqrt {x}}{f^3}+\frac {b e^2 k n x}{4 f^2}-\frac {b e k n x^{3/2}}{9 f}+\frac {1}{16} b k n x^2+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \text {Subst}\left (\int x^3 \log \left (d (e+f x)^k\right ) \, dx,x,\sqrt {x}\right )+\frac {\left (b e^4 k n\right ) \text {Subst}\left (\int \frac {\log (e+f x)}{x} \, dx,x,\sqrt {x}\right )}{f^4}\\ &=-\frac {b e^3 k n \sqrt {x}}{f^3}+\frac {b e^2 k n x}{4 f^2}-\frac {b e k n x^{3/2}}{9 f}+\frac {1}{16} b k n x^2-\frac {1}{4} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {\left (b e^4 k n\right ) \text {Subst}\left (\int \frac {\log \left (-\frac {f x}{e}\right )}{e+f x} \, dx,x,\sqrt {x}\right )}{f^3}+\frac {1}{4} (b f k n) \text {Subst}\left (\int \frac {x^4}{e+f x} \, dx,x,\sqrt {x}\right )\\ &=-\frac {b e^3 k n \sqrt {x}}{f^3}+\frac {b e^2 k n x}{4 f^2}-\frac {b e k n x^{3/2}}{9 f}+\frac {1}{16} b k n x^2-\frac {1}{4} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 k n \text {Li}_2\left (1+\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {1}{4} (b f k n) \text {Subst}\left (\int \left (-\frac {e^3}{f^4}+\frac {e^2 x}{f^3}-\frac {e x^2}{f^2}+\frac {x^3}{f}+\frac {e^4}{f^4 (e+f x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=-\frac {5 b e^3 k n \sqrt {x}}{4 f^3}+\frac {3 b e^2 k n x}{8 f^2}-\frac {7 b e k n x^{3/2}}{36 f}+\frac {1}{8} b k n x^2+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right )}{4 f^4}-\frac {1}{4} b n x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+\frac {b e^4 k n \log \left (e+f \sqrt {x}\right ) \log \left (-\frac {f \sqrt {x}}{e}\right )}{f^4}+\frac {e^3 k \sqrt {x} \left (a+b \log \left (c x^n\right )\right )}{2 f^3}-\frac {e^2 k x \left (a+b \log \left (c x^n\right )\right )}{4 f^2}+\frac {e k x^{3/2} \left (a+b \log \left (c x^n\right )\right )}{6 f}-\frac {1}{8} k x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {e^4 k \log \left (e+f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )}{2 f^4}+\frac {1}{2} x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {b e^4 k n \text {Li}_2\left (1+\frac {f \sqrt {x}}{e}\right )}{f^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.25, size = 336, normalized size = 1.07 \begin {gather*} -\frac {-36 a e^3 f k \sqrt {x}+90 b e^3 f k n \sqrt {x}+18 a e^2 f^2 k x-27 b e^2 f^2 k n x-12 a e f^3 k x^{3/2}+14 b e f^3 k n x^{3/2}+9 a f^4 k x^2-9 b f^4 k n x^2-36 a f^4 x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+18 b f^4 n x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right )+36 b e^4 k n \log \left (1+\frac {f \sqrt {x}}{e}\right ) \log (x)-36 b e^3 f k \sqrt {x} \log \left (c x^n\right )+18 b e^2 f^2 k x \log \left (c x^n\right )-12 b e f^3 k x^{3/2} \log \left (c x^n\right )+9 b f^4 k x^2 \log \left (c x^n\right )-36 b f^4 x^2 \log \left (d \left (e+f \sqrt {x}\right )^k\right ) \log \left (c x^n\right )+18 e^4 k \log \left (e+f \sqrt {x}\right ) \left (2 a-b n-2 b n \log (x)+2 b \log \left (c x^n\right )\right )+72 b e^4 k n \text {Li}_2\left (-\frac {f \sqrt {x}}{e}\right )}{72 f^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int x \left (a +b \ln \left (c \,x^{n}\right )\right ) \ln \left (d \left (e +f \sqrt {x}\right )^{k}\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x\,\ln \left (d\,{\left (e+f\,\sqrt {x}\right )}^k\right )\,\left (a+b\,\ln \left (c\,x^n\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________